package com.jhws.sys.appUser.service;

import java.util.List;
import java.util.Map;

import com.jhws.sys.appUser.bo.TblSipAcountBindings;
import com.jhws.sys.appUser.bo.TblSipAcountDimBo;
import com.jhws.common.Page;

public interface ITblSipAcountDimService
{
	public abstract TblSipAcountDimBo findTblSipAcountDimById(String acountId);

	public abstract TblSipAcountDimBo getSipAccountByUser(String username);

	public abstract List<TblSipAcountDimBo> findTblSipAcountDimByWhere(String whereClause) throws Exception;
	
	public abstract void remove(String username);
	
	public abstract void save(TblSipAcountDimBo bo) throws Exception;

	
	public abstract void removeByComm(String commCode);
	
	public void removeSipBinding(String username, String binding);
	
	public void removeSipBindingById(String id);
	
	public abstract String addSipAccount(String username, String password, String type, boolean isMd5) throws Exception;
	
	public abstract TblSipAcountBindings addSipBinding(String username, String bindingName,String bindingType, int pstn);
	
	public List<TblSipAcountBindings> genDefaultSipUnlockMonitorBindingList(String username,String RoomInfoNum);
	
	public abstract void updateSipBinding(TblSipAcountBindings tblSipAcountBindings);
	
	public abstract String isUserExist(String username);
	
	public String getPasswordMD5(String username,String password) throws Exception;
	
	public List<TblSipAcountBindings> getBindingsByUser(String username);
	
	public List<TblSipAcountBindings> findBindingsByBindingOrType(String binding, String binding_type);
	
	public abstract List<TblSipAcountBindings> findTblSipAcountBindingsByWhere(String whereClause) throws Exception;
}
